const Router = require('koa-router')
const router = new Router({
    prefix: '/cms/theme'
});
// const { IntValidator }  = require('../../validators/validator')

const { GoodClass } = require('@models/good/good_class')
const { GoodSpec } = require('@models/good/good_spec')
const { Goods } = require('@models/good/goods')
const { Theme, ThemeGoodList } = require('@models/good/theme')


router.post('/add',async ctx=>{
    const body = ctx.request.body;
    const res = await Theme.create(body)

    ctx.body = {
        data:res
    }
})

router.post('/page',async ctx=>{
    
})



module.exports = router;